package org.hzero.system.domain;

import org.hzero.system.annotation.KnifeValidateStrLength;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 执行拷贝字段的来源类
 * @author: tianhao.luo@hand-china.com 2021/3/3  10:08
 */
public class SourceDTO extends SourceParentDTO{

    /**
     * 字符串类型
     */
    @KnifeValidateStrLength(name = "子的字符串属性",maxLength = 5)
    private String strField;
    /**
     * 时间类型
     */
    private Date dateField;
    /**
     * 整型
     */
    private Integer intField;
    /**
     * 长整型
     */
    private Long longField;
    /**
     * 金额数字类型
     */
    private BigDecimal decimalField;


    public String getStrField() {
        return strField;
    }

    public void setStrField(String strField) {
        this.strField = strField;
    }

    public Date getDateField() {
        return dateField;
    }

    public void setDateField(Date dateField) {
        this.dateField = dateField;
    }

    public Integer getIntField() {
        return intField;
    }

    public void setIntField(Integer intField) {
        this.intField = intField;
    }

    public Long getLongField() {
        return longField;
    }

    public void setLongField(Long longField) {
        this.longField = longField;
    }

    public BigDecimal getDecimalField() {
        return decimalField;
    }

    public void setDecimalField(BigDecimal decimalField) {
        this.decimalField = decimalField;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("SourceDTO{");
        sb.append("strField='").append(strField).append('\'');
        sb.append(", dateField=").append(dateField);
        sb.append(", intField=").append(intField);
        sb.append(", longField=").append(longField);
        sb.append(", decimalField=").append(decimalField);
        sb.append(", parentStrField='").append(parentStrField).append('\'');
        sb.append(", parentDateField=").append(parentDateField);
        sb.append(", parentIntField=").append(parentIntField);
        sb.append(", parentLongField=").append(parentLongField);
        sb.append(", parentDecimalField=").append(parentDecimalField);
        sb.append('}');
        return sb.toString();
    }

}
